package com.veezean.codereview.server.entity;

import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_erupt.Power;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.Search;

import javax.persistence.*;

@Entity
@Table(name = "v_comment_total")
@Erupt(
        name = "评审统计",
        power = @Power(add=false,delete = false,edit = false,viewDetails = false,export = true)
)
public class CommentTotalEntity {
    @Id
    @EruptField
    private Long id;

    @EruptField(
            views = @View(title = "评审人员"),
            edit = @Edit(title = "评审人员",search = @Search)
    )
    private String name;

    @EruptField(
            views = @View(title = "未确认")
    )
    private String unconfirmed;

    @EruptField(
            views = @View(title = "待修改")
    )
    private String confirmed;

    @EruptField(
            views = @View(title = "已修改")
    )
    private String finished;

    @EruptField(
            views = @View(title = "拒绝")
    )
    private String refused;
}
